Skip to content

Conversation

@GregBrimble
Copy link
Contributor

Summary

We can remove this prerelease now.

Documentation checklist

@hyperlint-ai
Copy link
Contributor

hyperlint-ai bot commented Mar 13, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Updated documentation to reflect the removal of the prerelease requirement for the using declaration in Workers, now supported in Wrangler v4+.

  • Removed prerelease instructions for the using keyword in Workers.
  • Updated documentation to indicate support for using in Wrangler v4+.
  • Clarified that using will be transpiled automatically in the latest Wrangler.

Modified Files

  • src/content/docs/workers/runtime-apis/rpc/lifecycle.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

What is Hyperlint?

Hyperlint is an AI agent that helps you write, edit, and maintain your documentation.

Learn more about the Hyperlint AI reviewer and the checks that we can run on your documentation.

@GregBrimble GregBrimble force-pushed the upgrade-using-wrangler-v4 branch from 24c344d to 053aff8 Compare March 13, 2025 18:13
@GregBrimble GregBrimble enabled auto-merge (squash) March 13, 2025 18:41
@github-actions github-actions bot added size/xs product:workers Related to Workers product labels Mar 13, 2025
```

This version of Wrangler will transpile `using` into direct calls to `Symbol.dispose()`, before running your code or deploying it to Cloudflare.
[Wrangler](/workers/wrangler/) v4+ supports the `using` keyword natively. If you are on an earlier version of Wrangler, you can alternatively call dispose of resources manually.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[Wrangler](/workers/wrangler/) v4+ supports the `using` keyword natively. If you are on an earlier version of Wrangler, you can alternatively call dispose of resources manually.
[Wrangler](/workers/wrangler/) v4+ supports the `using` keyword natively. If you are using an earlier version of Wrangler, you will need to manually dispose of resources instead.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GregBrimble Sorry I didn't realize you had auto-merge on. I think you have a typo here. Can you confirm my suggestion here and I'll make another PR to fix it?

@GregBrimble GregBrimble merged commit 36b9da7 into production Mar 21, 2025
11 checks passed
@GregBrimble GregBrimble deleted the upgrade-using-wrangler-v4 branch March 21, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:workers Related to Workers product size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants